<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>{% block title %}{% endblock %}</title>
        <link href="{{ asset('bundles/admin/css/960.css') }}" rel="stylesheet" type="text/css" media="all" />
        <link href="{{ asset('bundles/admin/css/reset.css') }}" rel="stylesheet" type="text/css" media="all" />
        <link href="{{ asset('bundles/admin/css/text.css') }}" rel="stylesheet" type="text/css" media="all" />
        <link href="{{ asset('bundles/admin/css/login.css') }}" rel="stylesheet" type="text/css" media="all" />
        <link href="{{ asset('bundles/admin/css/blue.css') }}" rel="stylesheet" type="text/css" />
        <!--<link href="{{ asset('bundles/admin/css/smoothness/ui.css') }}" rel="stylesheet" type="text/css" />-->
        
        {% block stylesheets %}{% endblock %}
        
        <script type="text/javascript" src="{{ asset('bundles/admin/js/jquery-min.js') }}"></script>
        {#<script type="text/javascript" src="{{ asset('bundles/admin/js/blend/jquery.blend.js') }}"></script>#}
        {#<script type="text/javascript" src="{{ asset('bundles/admin/js/ui.core.js') }}"></script>#}
        {#<script type="text/javascript" src="{{ asset('bundles/admin/js/ui.sortable.js') }}"></script>#}
        {#<script type="text/javascript" src="{{ asset('bundles/admin/js/ui.dialog.js') }}"></script>#}
        {#<script type="text/javascript" src="{{ asset('bundles/admin/js/effects.js') }}"></script>#}
        {#<script type="text/javascript" src="{{ asset('bundles/admin/js/flot/jquery.flot.pack.js') }}"></script>#}
        
        {% block head %}{% endblock %}
        
    </head>

    <body>
        <div class="container_16" id="wrapper">
        {% set usuario = app.user %}
        {% if is_granted('ROLE_SUPER_ADMIN') %}
            {% set usuario ={
                'nombre': 'admin',
                'apellido': 'admin',
            } %}
        {% endif %}
     
            <div class="grid_8" id="logo">Sistema Migrador</div>
            <div class="grid_8">
                <!-- USER TOOLS START -->
                {% if is_granted('ROLE_USUARIO') %}
                    <div id="user_tools"><span>Bienvenido <a href="#">{{ usuario.apellido ~ ' ' ~ usuario.nombre }}</a>  |   <a href="{{ path('usuario_logout') }}">Cerrar Sesi&oacute;n</a></span></div>
                {% endif %}  
            </div>

            {% if is_granted('ROLE_USUARIO') %}
            <div class="grid_16" id="header">
                <!-- MENU START -->
                {% set url = app.request.uri %}
                <div id="menu">
                    <ul class="group" id="menu_group_main">
                        <li class="item first" id="one"><a href="{{ path('principal_homepage') }}" class="main {% if url == path('principal_homepage')%}current{% endif %}"><span class="outer"><span class="inner dashboard">Inicio</span></span></a></li>
                        <li class="item middle" id="four"><a href="{{ path('usuarios') }}" class="main {% if url == path('usuarios')%}current{% endif %}"><span class="outer"><span class="inner users">Gestión de Usuarios</span></span></a></li>
                        <li class="item middle" id="five"><a href="{{ path('importarRPP') }}" class="main {% if url == path('importarRPP')%}current{% endif %}"><span class="outer"><span class="inner database">Importar BD PID</span></span></a></li>        
                        <li class="item last" id="six"><a href="{{ path('prueba') }}" class="main {% if url == path('importarSintys')%}current{% endif %}"><span class="outer"><span class="inner database">Importar BD SINTYS</span></span></a></li>        
                    </ul>
                </div>
                <!-- MENU END -->
            </div>
            {% endif %}
                
                    
            <div class="grid_16" id="content">
                {% block contenido %}{% endblock %}
            </div>
            <div class="clear"> </div>
        </div>
        {% if is_granted('ROLE_USUARIO') %} 
        <div class="container_16" id="footer">
            "Sistema Migrador de Bases de Datos del Registro Provincial de las Personas | Desarrollado por A.T.T. - U.N.A.M."
        </div>
        {% endif %}    
            
        {% block javascripts %}{% endblock %}
    </body>  
</html>
